package cn.lysj.framework.common.validate.validate;

import cn.lysj.framework.common.validate.annotation.Null;
import cn.lysj.framework.common.validate.entity.Entity;

public class NullValidate extends AbstractValidate<Null> {

    public boolean validate(Entity entity) {
        return null == entity.getValue();
    }

    public void init() {
        this.setMsg(annotation.message());
        this.setGroups(annotation.groups());
    }
}


